//
//  AFNHTTPSRequest.h
//  EquesCat
//
//  Created by Chun Hung Cheung on 2024/12/17.
//

#import <Foundation/Foundation.h>
#import "AFNetworking/AFNetworking.h"

NS_ASSUME_NONNULL_BEGIN

@interface AFNHTTPSRequest : NSObject

/**
 get 请求json数据
*/
+ (void)httpsRequestWithUrl:(NSURL *)url errorHint:(void(^)(id errorData))errorHintBlock result:(void(^)(id data))block;

/**
 get 请求json数据 header 添加数据
*/
+ (void)httpsRequestWithUrl:(NSURL *)url errorHint:(void(^)(id errorData))errorHintBlock result:(void(^)(id data))block andHeader:(NSDictionary*)dict isPost:(BOOL)isPost;


/**
 单独请求服务器证书接口，不进行客户端验证
 */
+ (void)httpsRequestnewWithUrl:(NSURL *)url errorHint:(void(^)(id errorData))errorHint result:(void(^)(id data))block;

/**
  post json数据
*/
+ (void)httpsPostRequestWithUrl:(NSURL *)url errorHint:(void(^)(id errorData))errorHint deleteDic:(id)deleteDic isFavorite:(BOOL)isFavorite result:(void(^)(id data))block;

/**
响应数据为二进制数据
 */
+ (void)httpsRequestWithUrlDownloadImage:(NSURL *)url errorHint:(void(^)(id errorData))errorHint result:(void(^)(id data))block;

/**
  下载报警图片等信息
 */
+ (void)httpsRequestDownloadTaskWithUrl:(NSURL *)url destinatonPath:(NSString*)downLoadPath  progross:(void(^)(float progrossFloat))progross result:(void(^)(id data))block;

/**
 上传日志或头像
 */
+ (void)httpsUploadDocumentWithUrl:(NSURL*)url parameters:(id)parameters documentData:(NSData*)data  name:(NSString*)name fileName:(NSString*)filename mimeType:(NSString*)mimeType errorHint:(void(^)(id errorData))errorHint result:(void(^)(id data))block;

+ (void)bindLockPostWiFIWithUrl:(NSURL *)url errorHint:(void(^)(id errorData))errorHint deleteDic:(id)deleteDic result:(void(^)(id data))block;

+ (void)httpsDeleteRequestWithUrl:(NSURL *)url errorHint:(void(^)(id errorData))errorHint deleteDic:(id)deleteDic result:(void(^)(id data))block;

+ (void)httpsVM6PostRequestWithUrl:(NSURL *)url errorHint:(void(^)(id errorData))errorHint deleteDic:(id)deleteDic isFavorite:(BOOL)isFavorite result:(void(^)(id data))block value:(NSString*)value;


@end

NS_ASSUME_NONNULL_END
